package com.ruoyi.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.mapper.TFlowPathMapper;
import com.ruoyi.domain.TFlowPath;
import com.ruoyi.service.ITFlowPathService;

/**
 * 审批流程详情Service业务层处理
 * 
 * @author mzr
 * @date 2023-12-12
 */
@Service
public class TFlowPathServiceImpl implements ITFlowPathService 
{
    @Autowired
    private TFlowPathMapper tFlowPathMapper;

    /**
     * 查询审批流程详情
     * 
     * @param id 审批流程详情主键
     * @return 审批流程详情
     */
    @Override
    public TFlowPath selectTFlowPathById(Long id)
    {
        return tFlowPathMapper.selectTFlowPathById(id);
    }

    /**
     * 查询审批流程详情列表
     * 
     * @param tFlowPath 审批流程详情
     * @return 审批流程详情
     */
    @Override
    public List<TFlowPath> selectTFlowPathList(TFlowPath tFlowPath)
    {
        return tFlowPathMapper.selectTFlowPathList(tFlowPath);
    }

    /**
     * 新增审批流程详情
     * 
     * @param tFlowPath 审批流程详情
     * @return 结果
     */
    @Override
    public int insertTFlowPath(TFlowPath tFlowPath)
    {
        return tFlowPathMapper.insertTFlowPath(tFlowPath);
    }

    /**
     * 修改审批流程详情
     * 
     * @param tFlowPath 审批流程详情
     * @return 结果
     */
    @Override
    public int updateTFlowPath(TFlowPath tFlowPath)
    {
        return tFlowPathMapper.updateTFlowPath(tFlowPath);
    }

    /**
     * 批量删除审批流程详情
     * 
     * @param ids 需要删除的审批流程详情主键
     * @return 结果
     */
    @Override
    public int deleteTFlowPathByIds(Long[] ids)
    {
        return tFlowPathMapper.deleteTFlowPathByIds(ids);
    }

    /**
     * 删除审批流程详情信息
     * 
     * @param id 审批流程详情主键
     * @return 结果
     */
    @Override
    public int deleteTFlowPathById(Long id)
    {
        return tFlowPathMapper.deleteTFlowPathById(id);
    }
}
